package com.xkdx.caipiao.presistence.findpsw;

import org.apache.commons.logging.Log;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.ImageView;
import android.widget.TextView;

import com.xkdx.caipiao.R;
import com.xkdx.caipiao.presistence.login.Login;

public class ResetResultActivity extends Activity {
	Button login;
	ImageView im;
	TextView tv;

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		// TODO Auto-generated method stub
		super.onCreate(savedInstanceState);

		setContentView(R.layout.reset_psw_sucess_caipiao);
		login = (Button) findViewById(R.id.login);
		im = (ImageView) findViewById(R.id.result);
		tv = (TextView) findViewById(R.id.tv);
		boolean isSucess = getIntent().getBooleanExtra("isSuccess", false);

		if (!isSucess) {
			im.setImageResource(R.drawable.find_psw_faile_caipiao);
			tv.setText("密码重置失败");
			login.setVisibility(View.INVISIBLE);

		}
		login.setOnClickListener(new OnClickListener() {
			
			@Override
			public void onClick(View arg0) {
				Intent intent = new Intent(ResetResultActivity.this, Login.class);
				startActivity(intent);
			}
		});

	}
}
